let b = [{c: 123}, {d: 456}]

let p = b.splice(0) // 注意splice会改变原数组

console.log(p)

p.forEach(item => {
  b.push(item)
})

console.log(b)